-- GENERATED SPELL FOR [Silkwing Larva] --


function spell0_20747(pUnit, Event) --@Silkwing,Self--
pUnit:FullCastSpellOnTarget(36948,pUnit)
pUnit:RegisterEvent('Sorts_20747', 556, 1)
end

function Sorts_20747(pUnit, Event)
local choix_sorts_20747 = math.random(0, 0)
if choix_sorts_20747 == 0 then
pUnit:RegisterEvent('spell0_20747', 1, 1)
end
end

function mob20747_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20747', math.random(1500, 3000), 1)
end

function mob20747_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20747_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20747_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20747, 1, 'mob20747_Action')
RegisterUnitEvent(20747, 2, 'mob20747_Leave')
RegisterUnitEvent(20747, 3, 'mob20747_Kill')
RegisterUnitEvent(20747, 4, 'mob20747_Die')
